<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="*|/"><xsl:apply-templates/></xsl:template>

<xsl:template match="text()|@*"><xsl:value-of select="."/></xsl:template>

<xsl:template match='nbsp' name='nbsp'>
<xsl:text disable-output-escaping='yes'>&amp;nbsp;</xsl:text>
</xsl:template>

<xsl:include href='../xsl.include.main.xsl'/>

<xsl:template match="toApprove">

<xsl:comment>
0 - have just been created
1 - is public
2 - have been denyed authorization
3 - is waiting for authorization
4 - have been modified is waiting for authorization
99 - nuked owner
</xsl:comment>

<table bgcolor="#EEEEEE" class="body_10px" border="0" cellspacing="0" cellpadding="3" width="100%">

<tr height="25px">
<td colspan="8"><b>Nuovi eventi in attesa di approvazione</b></td></tr>

<tr class="body">
<td><b>Nickname</b></td>
<td colspan="2"><b>Titolo</b></td>
<td><b>Citta'</b></td>
<td><b>Data</b></td>
<td colspan="2" align='center'><b>Rifiuta</b></td>
<td><b>OK</b></td>
<td><b>Locale</b></td>
</tr>


<tr height="25px"><td class="dotlin" colspan="10"><b>In locale del Network</b></td></tr>

<xsl:for-each select="activity[@lid&gt;0]">
<tr>



<td>
	<nobr>
	<xsl:call-template name="user">
		<xsl:with-param name="status" select="user/@status"/>
		<xsl:with-param name="sexid" select="user/@sexid"/>
		<xsl:with-param name="certified" select="user/@certified"/>
		<xsl:with-param name="userid" select="user/@userid"/>
		<xsl:with-param name="nick" select="user/@nick"/>
	</xsl:call-template>
	</nobr>
</td>
<!-- <td><xsl:value-of select="@answerid"/></td> -->
<td width="1%"><a href="/activities/activityEdit.aspx?activityId={@activityid}"><img border="0" src="/imgs/modify.gif"/></a></td>
<td>

<xsl:choose>

<!-- <xsl:when test='@public="3"'>
<a href="/activities/activityShow.aspx?activityId={@activityid}"><xsl:value-of select="@title"/></a>
</xsl:when> -->
<xsl:when test='@public="4"'>
<b><a href="/activities/activityShow.aspx?activityId={@activityid}"><xsl:value-of select="@title"/></a></b>
</xsl:when>

<xsl:otherwise>
<a href="/activities/activityShow.aspx?activityId={@activityid}"><xsl:value-of select="@title"/></a>
</xsl:otherwise>
</xsl:choose>

</td>
<td>
<xsl:choose><xsl:when test='@radio="1197"'></xsl:when>
<xsl:when test='@place &gt; 0'><xsl:value-of select="@place"/></xsl:when>
<xsl:otherwise><xsl:value-of select="venue/@city"/></xsl:otherwise>
</xsl:choose>
</td>
<td>
	<xsl:value-of select="substring(@dueDate,9,2)"/>-<xsl:value-of select="substring(@dueDate,6,2)"/>-<xsl:value-of select="substring(@dueDate,1,4)"/>
</td>



<form name="ActivityDeleteLocal{position()}" method="post" action="?activityId={@activityid}&amp;makeItPublic=2">
<input type="hidden" name="FORM_ID" value="activity"></input>
<input type="hidden" name="activityuserid" value="{@userid}"></input>
<input type="hidden" name="activitytitle" value="{@title}"></input>
<td align="center">
	<select class="body_10px" size="1" name="WHY">
	<option value="1">Pubblicita</option>
	<option value="2">Pierraggio</option>
	<option value="3">Evento staff</option>
	<option value="4">Poco chiaro</option>
	<option value="5">Evento simile</option>
	<option value="6">Non consentito</option>
	<option value="7">Errori </option>
	<option value="8">Polemico</option>
	<option value="9">Volgare</option>
	<option value="10">Altro utente</option>
	<option value="11">Forum/vacanza</option>
	<option value="12">Altro</option>
	</select>
<a href="javascript:document.ActivityDeleteLocal{position()}.submit();"><img border="0" src="/imgs/delete.gif"/></a>
</td>
</form>


<form name="ActivityDontApproveLocal{position()}" method="post" action="?activityId={@activityid}&amp;makeItPublic=0">
<input type="hidden" name="FORM_ID" value="activity"></input>
<input type="hidden" name="activityuserid" value="{@userid}"></input>
<input type="hidden" name="activitytitle" value="{@title}"></input>
<td align="center">
<a href="javascript:document.ActivityDontApproveLocal{position()}.submit();"><img border="0" src="/imgs/warning.gif"/></a>
</td>
</form>



<form name="ActivityApproveLocal{position()}" method="post" action="?activityId={@activityid}&amp;makeItPublic=1">
<input type="hidden" name="FORM_ID" value="activity"></input>
<input type="hidden" name="activityuserid" value="{@userid}"></input>
<input type="hidden" name="activitytitle" value="{@title}"></input>
<td align="center">
<a href="javascript:document.ActivityApproveLocal{position()}.submit();"><img border="0" src="/imgs/markedyes.gif"/></a>
</td>
</form>




<td><xsl:value-of select="venue/@name"/></td>
</tr>


</xsl:for-each>


<!--  Eventi senza locali -->

<tr height="25px"><td class="dotlin" colspan="10"><b>Senza locale</b></td></tr>

<xsl:for-each select="activity[@lid=0]">
<tr>
<td>
	<nobr>
	<xsl:call-template name="user">
		<xsl:with-param name="status" select="user/@status"/>
		<xsl:with-param name="sexid" select="user/@sexid"/>
		<xsl:with-param name="certified" select="user/@certified"/>
		<xsl:with-param name="userid" select="user/@userid"/>
		<xsl:with-param name="nick" select="user/@nick"/>
	</xsl:call-template>
	</nobr>
</td>

<td width="1%"><a href="/activities/activityEdit.aspx?activityId={@activityid}"><img border="0" src="/imgs/modify.gif"/></a></td>
<td>
<xsl:choose>
<xsl:when test='@public="3"'>
<a href="/activities/activityShow.aspx?activityId={@activityid}"><xsl:value-of select="@title"/></a>
</xsl:when>
<xsl:when test='@public="4"'>
<b><a href="/activities/activityShow.aspx?activityId={@activityid}"><xsl:value-of select="@title"/></a></b>
</xsl:when>
<xsl:otherwise>
<a href="/activities/activityShow.aspx?activityId={@activityid}"><xsl:value-of select="@title"/></a>
</xsl:otherwise>
</xsl:choose>
</td>
<td>
<xsl:choose><xsl:when test='@radio="1197"'></xsl:when>
<xsl:when test='@place &gt; 0'><xsl:value-of select="@place"/></xsl:when>
<xsl:otherwise><xsl:value-of select="@city"/></xsl:otherwise>
</xsl:choose>
</td>
<td>
	<xsl:value-of select="substring(@dueDate,9,2)"/>-<xsl:value-of select="substring(@dueDate,6,2)"/>-<xsl:value-of select="substring(@dueDate,1,4)"/>
</td>




<form name="ActivityDelete{position()}" method="post" action="?activityId={@activityid}&amp;makeItPublic=2">
<input type="hidden" name="FORM_ID" value="activity"></input>
<input type="hidden" name="activityuserid" value="{@userid}"></input>
<input type="hidden" name="activitytitle" value="{@title}"></input>
<td align="center">
	<select class="body_10px" size="1" name="WHY">
	<option value="1">Pubblicita</option>
	<option value="2">Pierraggio</option>
	<option value="3">Evento staff</option>
	<option value="4">Poco chiaro</option>
	<option value="5">Evento simile</option>
	<option value="6">Non consentito</option>
	<option value="7">Errori </option>
	<option value="8">Polemico</option>
	<option value="9">Volgare</option>
	<option value="10">Altro utente</option>
	<option value="11">Forum/vacanza</option>
	<option value="12">Altro</option>
	</select>
<a href="javascript:document.ActivityDelete{position()}.submit();"><img border="0" src="/imgs/delete.gif"/></a>
</td>
</form>




<form name="ActivityDontApprove{position()}" method="post" action="?activityId={@activityid}&amp;makeItPublic=0">
<input type="hidden" name="FORM_ID" value="activity"></input>
<input type="hidden" name="activityuserid" value="{@userid}"></input>
<input type="hidden" name="activitytitle" value="{@title}"></input>
<td align="center">
<a href="javascript:document.ActivityDontApprove{position()}.submit();"><img border="0" src="/imgs/warning.gif"/></a>
</td>
</form>



<form name="ActivityApprove{position()}" method="post" action="?activityId={@activityid}&amp;makeItPublic=1">
<input type="hidden" name="FORM_ID" value="activity"></input>
<input type="hidden" name="activityuserid" value="{@userid}"></input>
<input type="hidden" name="activitytitle" value="{@title}"></input>
<td align="center">
<a href="javascript:document.ActivityApprove{position()}.submit();"><img border="0" src="/imgs/markedyes.gif"/></a>
</td>
</form>


</tr>
</xsl:for-each>


</table>
</xsl:template>

</xsl:stylesheet>